package brewery;



import java.util.ArrayList;

import sorters.*;

import java.math.BigDecimal;

public class Beer{
	private int alcohol;
	private BigDecimal brixDegrees;
	private int beerId;
	
	public Beer(int alcohol, BigDecimal brixDegrees, int beerId){
		this.alcohol=alcohol;
		this.brixDegrees=brixDegrees;
		this.beerId = beerId;
		}
		
		
		public int getBeerId(){
			return this.beerId;
		}
		
		public void setBeerId(int beerId){
			this.beerId=beerId;
			
		}
	
	
		public int getAlcohol(){
			return this.alcohol;
		}
		
		public void setAlcohol(int alcohol){
			this.alcohol=alcohol;
		}
		
		public BigDecimal getBrixDegrees(){
			return this.brixDegrees;
		}
		
		public void setBrixDegrees(BigDecimal brixDegrees){
			this.brixDegrees=brixDegrees;
		}
		
		public static void main(String[] args){
			
			BigDecimal brixDegrees1 = new BigDecimal("13");
			BigDecimal brixDegrees2 = new BigDecimal("16.5");
			BigDecimal brixDegrees3 = new BigDecimal("13");
			
			
			Beer hopsterI = new Beer(9, brixDegrees1, 1);
			Beer hopsterII = new Beer(7, brixDegrees2, 2);
			Beer hopsterIII = new Beer(8, brixDegrees3, 3);
			
			
			ArrayList<Beer> beerList = new ArrayList<Beer>();
			beerList.add(hopsterI);
			beerList.add(hopsterII);
			beerList.add(hopsterIII);
			
			BrixSorter sortBeer = new BrixSorter();
			
			sortBeer.sort(beerList);
		}
		
}



